Skip to content

Commit fb824d7

Browse files
kotlin-samples-pusher-botAlexanderPrendota
authored andcommitted
test(samples): add new samples
1 parent 12907a0 commit fb824d7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
fun main() {
2+
var a = "hello"
3+
var b = "hello"
4+
var c = null
5+
var d = null
6+
var e = d
7+
8+
println(a == b)
9+
// true
10+
println(a == c)
11+
// false
12+
println(c == e)
13+
// true
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
fun main() {
2+
var a = "Hello"
3+
var b = a
4+
var c = "world"
5+
var d = "world"
6+
7+
println(a === b)
8+
// true
9+
println(a === c)
10+
// false
11+
println(c === d)
12+
// true
13+
14+
}

0 commit comments

Comments
 (0)