[NI] Make error CST when any of included types is error
`ErrorType` is not subtype of `Any`, so any set of types containing an `ErrorType` has no common super constructors. ^KT-36745 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
|
||||
fun test() {
|
||||
run {
|
||||
if (true)
|
||||
return@run false
|
||||
<!UNRESOLVED_REFERENCE!>unresolved<!>.toString()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
|
||||
fun test() {
|
||||
run {
|
||||
if (true)
|
||||
return@run false
|
||||
<!UNRESOLVED_REFERENCE!>unresolved<!>.<!DEBUG_INFO_MISSING_UNRESOLVED!>toString<!>()
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
Reference in New Issue
Block a user