FIR: support resolving to objects

This commit is contained in:
Simon Ogorodnik
2019-04-09 20:21:47 +03:00
committed by Mikhail Glukhikh
parent b38f3a1272
commit c6aff9380b
21 changed files with 160 additions and 61 deletions
@@ -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
+1
View File
@@ -6,5 +6,6 @@ public class J {
}
// FILE: javaStaticMethod.kt
// FIR_IDENTICAL
fun test() = J.bar()