Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87b4331 commit cb1124bCopy full SHA for cb1124b
3 files changed
java/ql/test/kotlin/library-tests/type_aliases/test.kt
@@ -0,0 +1,16 @@
1
+
2
+class MyClass<T> {}
3
4
+typealias AliasInt = Int
5
+typealias AliasX = MyClass<Int>
6
+typealias AliasY = MyClass<AliasInt>
7
8
+fun someFun(
9
+ x1: Int,
10
+ x2: AliasInt,
11
+ x3: MyClass<Int>,
12
+ x4: AliasX,
13
+ x5: MyClass<AliasInt>,
14
+ x6: AliasY) {
15
+}
16
java/ql/test/kotlin/library-tests/type_aliases/type_aliases.expected
@@ -0,0 +1,3 @@
+| test.kt:4:1:4:24 | AliasInt | file://:0:0:0:0 | Kotlin not-null Int |
+| test.kt:5:1:5:31 | AliasX | file://:0:0:0:0 | Kotlin not-null MyClass |
+| test.kt:6:1:6:36 | AliasY | file://:0:0:0:0 | Kotlin not-null MyClass |
java/ql/test/kotlin/library-tests/type_aliases/type_aliases.ql
@@ -0,0 +1,4 @@
+import java
+from KotlinTypeAlias ta
+select ta, ta.getKotlinType()
0 commit comments