Granular test configurations
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class Library {
|
||||
final static java.io.PrintStream ourOut;
|
||||
}
|
||||
|
||||
class User {
|
||||
void main() {
|
||||
Library.ourOut.print();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
open class Library() {
|
||||
class object {
|
||||
val ourOut : java.io.PrintStream? = null
|
||||
}
|
||||
}
|
||||
open class User() {
|
||||
open fun main() : Unit {
|
||||
Library.ourOut?.print()
|
||||
}
|
||||
}
|
||||
@@ -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,15 @@
|
||||
open class Library() {
|
||||
class object {
|
||||
open fun call() : Unit {
|
||||
}
|
||||
open fun getString() : String? {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
}
|
||||
open class User() {
|
||||
open fun main() : Unit {
|
||||
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,16 @@
|
||||
open class Library() {
|
||||
open fun call() : Unit {
|
||||
}
|
||||
open fun getString() : String? {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
open class User() {
|
||||
open fun main() : Unit {
|
||||
var lib : Library? = 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() {
|
||||
Library.myString.isEmpty();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
open class Library() {
|
||||
public val myString : String? = null
|
||||
}
|
||||
open class User() {
|
||||
open fun main() : Unit {
|
||||
Library.myString?.isEmpty()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
System.out.println("Hello, world");
|
||||
@@ -0,0 +1 @@
|
||||
System.out?.println("Hello, world")
|
||||
Reference in New Issue
Block a user