FIR: support resolving to objects
This commit is contained in:
committed by
Mikhail Glukhikh
parent
b38f3a1272
commit
c6aff9380b
@@ -1,6 +0,0 @@
|
||||
FILE fqName:<root> fileName:/implicitCastOnPlatformType.kt
|
||||
FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.String
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test (): kotlin.String declared in <root>'
|
||||
ERROR_CALL 'Unresolved reference: <Unresolved name: getProperty>#' type=IrErrorType
|
||||
CONST String type=kotlin.String value="test"
|
||||
@@ -1,2 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
fun test(): String =
|
||||
System.getProperty("test")
|
||||
@@ -1,5 +0,0 @@
|
||||
FILE fqName:<root> fileName:/javaStaticMethod.kt
|
||||
FUN name:test visibility:public modality:FINAL <> () returnType:IrErrorType
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test (): IrErrorType declared in <root>'
|
||||
ERROR_CALL 'Unresolved reference: <Unresolved name: bar>#' type=IrErrorType
|
||||
@@ -6,5 +6,6 @@ public class J {
|
||||
}
|
||||
|
||||
// FILE: javaStaticMethod.kt
|
||||
// FIR_IDENTICAL
|
||||
|
||||
fun test() = J.bar()
|
||||
Reference in New Issue
Block a user