FIR2IR: provide type arguments for class 'this' receiver

This commit is contained in:
Juan Chen
2020-02-08 05:13:34 +03:00
committed by Mikhail Glukhikh
parent df07b77271
commit 8e35545e10
69 changed files with 660 additions and 826 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
//KT-2997 Automatically cast error (Array)
fun foo(a: Any): Int {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun <T> Array<T>.getLength(): Int {
return this.size
}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
public class StockMarketTableModel() {
public fun getColumnCount() : Int {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
main(array())
return "OK"
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
fun get(vararg x: Int) = x.size
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
class P(val actual: String, val expected: String)
fun array(vararg s: P) = s