Type variables mentioned in local functions should not be flexible

(cc #112)
This commit is contained in:
Ulf Norell
2019-08-30 14:22:31 +02:00
parent f27ba528d8
commit 062309e578
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
contract Fail =
entrypoint tttt() : bool * int =
let f(x : 'a) : 'a = x
(f(true), f(1))