Following the initial example in the guide (<https...
# tornadofx
i
Following the initial example in the guide (https://edvin.gitbooks.io/tornadofx-guide/content/part1/3.%20Components.html), but getting:
Copy code
Error:(18, 8) Kotlin: Type inference failed: fun <T : UIComponent> EventTarget.plusAssign(type: KClass<T>): Unit cannot be applied to receiver: VBox  arguments: (Button)
on:
Copy code
root += Button("Press Me")
I'm assuming it's just that the guide is out of date, but wanted to check before filing a bug.
Complete code:
Copy code
import javafx.application.Application
import javafx.scene.control.Button
import javafx.scene.control.Label
import javafx.scene.layout.VBox
import tornadofx.App
import tornadofx.View

fun main(args: Array<String>) {
	Application.launch(MyApp::class.java, *args)
}

class MyApp: App(MyView::class)

class MyView: View() {
	override val root = VBox()

	init {
		root += Button("Press Me")
	}
}
It works fine via the builders:
Copy code
class MyView : View() {
	override val root = vbox {
		button("Press Me")
	}
}