Following that should be legal, but cannot compile:
val treeView = new TreeView[Person] {
cellFactory = (v: TreeView[Person]) => new TreeCell[Person] {...}
}
Attempting to compile results in error:
type mismatch;
found : scalafx.scene.control.TreeCell[Person]
required: javafx.scene.control.TreeCell[Person]
cellFactory = (v: TreeView[Person]) => new TreeCell[Person] {
^
Complete sample code is attached.
Original issue reported on code.google.com by jpsacha on 7 Nov 2013 at 12:10
Original issue reported on code.google.com by
jpsacha
on 7 Nov 2013 at 12:10