Report an error on dynamic types used as supertypes or upper bounds

This commit is contained in:
Andrey Breslav
2014-11-21 16:48:21 +03:00
parent 65164e95b5
commit ea36024893
7 changed files with 48 additions and 5 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ fun jsFun(p: dynamic): dynamic
- `lub(T, dynamic) = dynamic`
- ??? `glb(T, dynamic) = T`
- `dynamic` can't be substituted for reified parameters of function/constructor calls (this means that it's not possible to create an array of `dynamic`)
- `dynamic` can't be used as a supertype or upper bound for a tpe parameter
- `dynamic` can't be used as a supertype or upper bound for a type parameter
- `dynamic` is less specific than any other type
## Syntax