[JS IR BE] Bridges construction

This commit is contained in:
Svyatoslav Kuzmich
2018-06-28 17:30:48 +03:00
parent a2f89cc711
commit 77ad97a39e
41 changed files with 217 additions and 46 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T, U> {
fun foo(t: T, u: U) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// KT-3985
interface Trait<T> {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun foo(t: T): String
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun foo(t: T, u: Int) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T, U, V> {
open fun foo(t: T, u: U, v: V) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T, U> {
fun foo(t: T, u: U) = "A"
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T> {
open fun <U> foo(t: T, u: U) = "A"
}
-2
View File
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
open class A<T> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T : Number> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
abstract class A<T> {
abstract fun foo(t: T): String
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T : U, U> {
open fun foo(t: T, u: U) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun id(t: T): T
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
public open class A<T> {
fun foo(x: T) = "O"
fun foo(x: A<T>) = "K"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T> {
open fun <U> foo(t: T, u: U) = "A"
}
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
open class A<T> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A<T : Number> {
open fun foo(t: T) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun foo(t: T, u: Int) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun foo(t: T, u: Int) = "A"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun foo(t: T) = "A"
}
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun foo(t: T): String
}
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
interface A<T: Number> {
fun foo(t: T): String
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
var GUEST_USER_ID = 3
val USER_ID =
try {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class A {
fun foo() {}
fun bar(f: A.() -> Unit = {}) {}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
abstract class A<T> {
abstract fun test(a: T, b:Boolean = false) : String
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun unsupportedEx() {
if (true) throw UnsupportedOperationException()
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun unsupportedEx() {
if (true) throw UnsupportedOperationException()
}
-2
View File
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
package org.example
interface SomeTrait {}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class A(
val a: String = {
open class B() {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
var global = 0
fun sideEffect() = global++