Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f04eb6b

Browse files
tamasvajkigfoo
authored andcommitted
Add Nothing type test
1 parent 28afa19 commit f04eb6b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

java/ql/test/kotlin/library-tests/types/types.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
| file://:0:0:0:0 | <nulltype> | NullType |
12
| file://:0:0:0:0 | Any | Class |
23
| file://:0:0:0:0 | boolean | PrimitiveType |
34
| file://:0:0:0:0 | byte | PrimitiveType |
@@ -8,4 +9,4 @@
89
| file://:0:0:0:0 | long | PrimitiveType |
910
| file://:0:0:0:0 | short | PrimitiveType |
1011
| file://:0:0:0:0 | string | ??? |
11-
| types.kt:2:1:33:1 | Foo | Class |
12+
| types.kt:2:1:37:1 | Foo | Class |

java/ql/test/kotlin/library-tests/types/types.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ TODO
2121
val propChar: Char = 'c'
2222
val propString: String = "str"
2323

24+
val propNullableString: String? = "str"
25+
26+
val propNullableNothing: Nothing? = null
27+
2428
/*
2529
TODO
2630
val propArray: Array<Int> = arrayOf(1, 2, 3)

0 commit comments

Comments
 (0)