Explore Library
KotlinIntroduction & Core Concepts

50 items

Code QuizBeginner

Type inference

See how an inferred type restricts later assignments.

Codekotlin
fun main() {
    var score = 100
    score = 95.5
    println(score)
}

What is the bug in this code?