Skip to content

Commit

Permalink
Merge pull request #1458 from uqbar-project/fix-#1442-type-collection…
Browse files Browse the repository at this point in the history
…-elements-after-block-variable

Fixes 1442 / Actually was already working, only add test
  • Loading branch information
npasserini committed Aug 11, 2018
2 parents 9e99e84 + 2816a08 commit 1b44b1f
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* XPECT_SETUP org.uqbar.project.wollok.tests.typesystem.xpect.TypeSystemXpectTestCase END_SETUP */


class Empleado {
var property categoria = 0
}

object jefe {
// XPECT type at empleados --> List<Empleado>
var empleados = []

method algunoConCategoria(cat) {
return empleados.any{
// XPECT type at emp --> Empleado
emp => emp.categoria() == cat
}
}
}

0 comments on commit 1b44b1f

Please sign in to comment.