Check that there are no maps in map keys already in type checker

This commit is contained in:
Ulf Norell
2019-09-03 12:04:22 +02:00
parent 510935d945
commit 0533ab27e1
4 changed files with 36 additions and 18 deletions
+6
View File
@@ -0,0 +1,6 @@
contract MapAsMapKey =
type t('key) = map('key, int)
type lm = list(map(int, int))
entrypoint foo(m) : t(map(int, int)) = {[m] = 0}
entrypoint bar(m) : t(lm) = Map.delete(m, {})