[FIR-TEST] Move analysis tests to separate module
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
// FILE: util/HashMap.java
|
||||
|
||||
package util;
|
||||
|
||||
public class HashMap<K, V> extends java.util.HashMap<K, V> {}
|
||||
|
||||
// FILE: foo/ArrayList.java
|
||||
|
||||
package foo;
|
||||
|
||||
public class ArrayList<T> extends java.util.ArrayList<T> {}
|
||||
|
||||
// FILE: LinkedList.kt
|
||||
|
||||
package foo
|
||||
|
||||
class LinkedList<T> : java.util.LinkedList<T>()
|
||||
|
||||
// FILE: HashSet.kt
|
||||
|
||||
package util
|
||||
|
||||
class HashSet<T> : java.util.HashSet<T>
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
package foo
|
||||
|
||||
import util.HashMap
|
||||
import util.HashSet
|
||||
|
||||
class LinkedHashMap<K, V> : java.util.LinkedHashMap<K, V>()
|
||||
|
||||
fun test_1() {
|
||||
val map = HashMap<Int, Int>() // <- should be util.HashMap
|
||||
}
|
||||
|
||||
fun test_2() {
|
||||
val set = HashSet<Int>() // <- should be util.HashSet
|
||||
}
|
||||
|
||||
fun test_3() {
|
||||
val list = ArrayList<Int>() // <- should be foo.ArrayList
|
||||
}
|
||||
|
||||
fun test_4() {
|
||||
val list = LinkedList<Int>() // <- should be foo.LinkedList
|
||||
}
|
||||
|
||||
fun test_5() {
|
||||
val map = LinkedHashMap<Int, Int>() // should be foo.LinkedHashMap
|
||||
}
|
||||
Reference in New Issue
Block a user