j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class Library {
|
||||
final static java.io.PrintStream ourOut;
|
||||
}
|
||||
|
||||
class User {
|
||||
void main() {
|
||||
Library.ourOut.print(1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// ERROR: Property must be initialized or be abstract
|
||||
class Library {
|
||||
class object {
|
||||
val ourOut: java.io.PrintStream
|
||||
}
|
||||
}
|
||||
|
||||
class User {
|
||||
fun main() {
|
||||
Library.ourOut.print(1)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
class Library {
|
||||
static void call() {}
|
||||
|
||||
static String getString() { return ""; }
|
||||
}
|
||||
|
||||
class User {
|
||||
void main() {
|
||||
Library.call();
|
||||
Library.getString().isEmpty();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
class Library {
|
||||
class object {
|
||||
fun call() {
|
||||
}
|
||||
|
||||
fun getString(): String {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class User {
|
||||
fun main() {
|
||||
Library.call()
|
||||
Library.getString().isEmpty()
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// !forceNotNullTypes: false
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
class Library {
|
||||
void call() {}
|
||||
|
||||
String getString() { return ""; }
|
||||
}
|
||||
|
||||
class User {
|
||||
void main() {
|
||||
Library lib = new Library();
|
||||
lib.call();
|
||||
lib.getString().isEmpty();
|
||||
|
||||
new Library().call();
|
||||
new Library().getString().isEmpty();
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
// !forceNotNullTypes: false
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
class Library {
|
||||
fun call() {
|
||||
}
|
||||
|
||||
fun getString(): String? {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
class User {
|
||||
fun main() {
|
||||
val lib: Library = Library()
|
||||
lib.call()
|
||||
lib.getString()!!.isEmpty()
|
||||
|
||||
Library().call()
|
||||
Library().getString()!!.isEmpty()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
class Library {
|
||||
void call() {}
|
||||
|
||||
String getString() { return ""; }
|
||||
}
|
||||
|
||||
class User {
|
||||
void main() {
|
||||
Library lib = new Library();
|
||||
lib.call();
|
||||
lib.getString().isEmpty();
|
||||
|
||||
new Library().call();
|
||||
new Library().getString().isEmpty();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
class Library {
|
||||
fun call() {
|
||||
}
|
||||
|
||||
fun getString(): String {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
class User {
|
||||
fun main() {
|
||||
val lib = Library()
|
||||
lib.call()
|
||||
lib.getString().isEmpty()
|
||||
|
||||
Library().call()
|
||||
Library().getString().isEmpty()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class Library {
|
||||
final public String myString;
|
||||
}
|
||||
|
||||
class User {
|
||||
void main() {
|
||||
new Library().myString.isEmpty();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// ERROR: Property must be initialized or be abstract
|
||||
class Library {
|
||||
public val myString: String
|
||||
}
|
||||
|
||||
class User {
|
||||
fun main() {
|
||||
Library().myString.isEmpty()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//statement
|
||||
System.out.println("Hello, world");
|
||||
@@ -0,0 +1 @@
|
||||
System.out.println("Hello, world")
|
||||
Reference in New Issue
Block a user