sarkisderderian / scalafx

Automatically exported from code.google.com/p/scalafx
Other
0 stars 0 forks source link

Compilation error when creating TreeView cellFactory #108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by jpsacha on 7 Nov 2013 at 12:13

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 9d6e854b38ed.

Original comment by jpsacha on 7 Nov 2013 at 2:22