]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/scl/FunctionalDependencies1.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / scl / FunctionalDependencies1.scl
1 import "Prelude"
2
3 class Container c a b | c -> a, c -> b where
4     get :: c -> a -> b
5
6 instance Container [a] Integer a where
7     get = (!)
8
9 main = get [1,2,3,4,5] 3
10 --
11 4