i'm super new to Kotlin and i don't see my problem anywhere so i guess it's trivial
i was following a tutorial and in it he wrote the following
var nullableName: String? = "Denis"
nullableName = null
and when i typed that in i got a compiler error saying "Expecting a top level declaration" but it didn't for him
i know if i type something like
var nullableName: String? = null
it works fine but i wanna understand why i'm getting that error
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…