]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/TypeClass.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / TypeClass.scl
1
2 class Foo a where
3     foo :: a -> Integer
4     
5 instance Foo Integer where
6     foo x = x
7     
8 main = foo (13 :: Integer)
9 --
10 13