unison/unison-src/tests/ask-inferred.u
Paul Chiusano 5af38fb39b Merge branch 'master' into wip/effects
# Conflicts:
#	parser-typechecker/src/Unison/PrintError.hs
#	parser-typechecker/src/Unison/Typechecker/Context.hs
#	parser-typechecker/tests/Unison/Test/Typechecker.hs
2018-08-14 16:13:50 -04:00

21 lines
236 B
Plaintext

--Ask inferred
effect Ask a where
ask : {Ask a} a
effect AskU where
ask : {AskU} UInt64
use UInt64 +
x = '(Ask.ask + 1)
x2 = '(Ask.ask + AskU.ask)
y : '{Ask UInt64} UInt64
y = '(!x)
y2 : '{Ask UInt64, AskU} UInt64
y2 = x2
()