daml/compiler/damlc/tests/daml-test-files/TyConAppCoercion.daml
Shayne Fletcher 4f68cfc480
strengthen unused * testing (#6467)
changelog_begin
changelog_end
2020-06-23 12:44:11 -04:00

18 lines
310 B
Haskell

-- Copyright (c) 2020, Digital Asset (Switzerland) GmbH and/or its
-- affiliates. All rights reserved.
module TyConAppCoercion (X(..)) where
class MyClass a where
f1 : Optional a -> a
f1 = error ""
f2 : [a] -> a
f2 = error ""
data X = X
instance MyClass X where
newtype Y = Y X
deriving MyClass