Inference for type alias constructor type arguments: better error reporting.

This commit is contained in:
Dmitry Petrov
2016-11-09 16:32:19 +03:00
parent 94d7bd7a6b
commit 549ae59562
10 changed files with 123 additions and 40 deletions
@@ -1,3 +1,3 @@
<!-- upperBoundViolatedInTypeAliasConstructorCall1 -->
Type parameter bound for Tn in type inferred from type alias expansion for fun <T> <init>(x: T): Num<T>
is not satisfied: inferred type T is not a subtype of Number
is not satisfied: inferred type String is not a subtype of Number