Pull Up: Java -> Kotlin interoperability

#KT-5803 Fixed
This commit is contained in:
Alexey Sedunov
2015-08-06 16:20:12 +03:00
parent 556285f2c7
commit 7125989c69
50 changed files with 1337 additions and 337 deletions
@@ -0,0 +1,24 @@
abstract class <caret>B extends A {
// INFO: {"checked": "true", "toAbstract": "true"}
int x = 2*3;
// INFO: {"checked": "true", "toAbstract": "true"}
static String X = "1" + "2";
// INFO: {"checked": "true", "toAbstract": "true"}
boolean foo(int n) {
return n > 0;
}
// INFO: {"checked": "true", "toAbstract": "true"}
static String foo2(int n) {
return "_" + n + "_";
}
// INFO: {"checked": "true", "toAbstract": "true"}
abstract int bar(String s);
// INFO: {"checked": "true", "toAbstract": "true"}
class X {
}
// INFO: {"checked": "true", "toAbstract": "true"}
static class Y {
}
}