marstran
12/18/2017, 6:36 PMInt? so it will fit most specific function signature which is fun println(message: Int). Instead of giving an error, it could have called fun println(message: Any?). I wouldn't want my overloads to resolve differently based on var vs val though, so I guess it's the right decision to give the error.