Support basic reification in IR

This commit is contained in:
Mikhael Bogdanov
2019-04-04 15:47:57 +02:00
parent 02cb1d7dcc
commit 4c59d161d4
54 changed files with 35 additions and 66 deletions

View File

@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// FILE: test.kt
fun test1() {

View File

@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// FILE: test.kt
fun test1(): String {

View File

@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
inline fun <reified T> Any?.isa() = this is T
// 1 INSTANCEOF

View File

@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
inline fun <reified T> isNullable() = null is T
// 1 INSTANCEOF