Allow dynamic types only in some contexts

This commit is contained in:
Andrey Breslav
2014-11-25 18:40:55 +03:00
parent 28b466d069
commit 20513abe04
20 changed files with 138 additions and 14 deletions
+5 -1
View File
@@ -73,4 +73,8 @@ foo(listOf()) // can't determine T for listOf<T>()
Discussion:
- we could tweak inference so that it takes `dynamic` as a bound for all type variables whose containing type has a dynamic bound,
but it's hard to be sure it's worth the while
but it's hard to be sure it's worth the while
## Notes
- dynamic types are not supported on the JVM back-end