Refine type arguments resolution and rendering
In case of type constructors captured parameters from outer classes #KT-5510 Fixed #KT-3112 Fixed #KT-6325 Fixed #KT-408 Fixed #KT-6337 Fixed
This commit is contained in:
Vendored
-2
@@ -1,6 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Type inference failed: constructor Foo<U>(u: U)<br>cannot be applied to<br>(U)<br>
|
||||
// ERROR: Type mismatch: inferred type is U but U was expected
|
||||
|
||||
class A<T>(val n: T) {
|
||||
|
||||
|
||||
Vendored
-2
@@ -1,6 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Type inference failed: constructor Foo<U>(u: U)<br>cannot be applied to<br>(U)<br>
|
||||
// ERROR: Type mismatch: inferred type is U but U was expected
|
||||
|
||||
class A<T>(val n: T) {
|
||||
inner class Foo<U>(u: U) {
|
||||
|
||||
Vendored
-2
@@ -1,6 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Type mismatch: inferred type is kotlin.String but V was expected
|
||||
// ERROR: The integer literal does not conform to the expected type U
|
||||
|
||||
class B<T>(val t: T) {
|
||||
|
||||
|
||||
-2
@@ -1,6 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Type mismatch: inferred type is kotlin.String but V was expected
|
||||
// ERROR: The integer literal does not conform to the expected type U
|
||||
|
||||
class B<T>(val t: T) {
|
||||
inner class Foo<U, V>(u: U, v: V) {
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Type mismatch: inferred type is kotlin.String but U was expected
|
||||
|
||||
class B<T>(val t: T) {
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Type mismatch: inferred type is kotlin.String but U was expected
|
||||
|
||||
class B<T>(val t: T) {
|
||||
inner class Foo<U>(i: Int, u: U) {
|
||||
|
||||
-2
@@ -1,6 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Type mismatch: inferred type is kotlin.String but W was expected
|
||||
// ERROR: The integer literal does not conform to the expected type V
|
||||
|
||||
class B<T>(val t: T) {
|
||||
|
||||
|
||||
-2
@@ -1,6 +1,4 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
// ERROR: Type mismatch: inferred type is kotlin.String but W was expected
|
||||
// ERROR: The integer literal does not conform to the expected type V
|
||||
|
||||
class B<T>(val t: T) {
|
||||
inner class Foo<U, V, W>(v: V, w: W) {
|
||||
|
||||
Reference in New Issue
Block a user