Fix prematurely analyzing a lambda while fixing a type variable for another argument
^KT-35168 Fixed
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !LANGUAGE: +NewInference
|
||||
// SKIP_TXT
|
||||
// Issue: KT-35168
|
||||
|
||||
class Inv<T>
|
||||
|
||||
// Before the fix, here we had an exception while fixing a type variable for Inv due to prematurely analyzing a lambda
|
||||
// The exception was: "UninitializedPropertyAccessException: lateinit property subResolvedAtoms has not been initialized"
|
||||
class Foo<T>(x: (T) -> T, y: Inv<Any>)
|
||||
|
||||
fun bar() {
|
||||
Foo<Any>({}, Inv())
|
||||
}
|
||||
Reference in New Issue
Block a user