<@U78L28DMX> are you new in Kotlin, or are you mix...
# tornadofx
t
@amanda.hinchman-dominguez are you new in Kotlin, or are you mixing up java and kotlin in your example? A field is written as
val name: Type =Type()
Here
Type()
is the constructor, so you don't need
new
.
val
stands for a field witch you can only read.
var
is a field with a getter and a setter If your new in Kotlin, I recommend you to follow the kotlin-koans http://kotlinlang.org/docs/tutorials/