| Summary: | [Xtend2] BEFORE can only be used together with AFTER in FOR/ENDFOR Loop | ||
|---|---|---|---|
| Product: | [Tools] Xtend | Reporter: | patrick.lehmann |
| Component: | Core | Assignee: | Project Inbox <xtend-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow, sven.efftinge |
| Version: | 2.3.0 | Flags: | sebastian.zarnekow:
juno+
|
| Target Milestone: | M7 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
pushed to master Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: Build id: 20110916-0149 In Rich-Strings using the FOR/ENDFOR Loop, BEFORE can only be used together with AFTER. If BEFORE is used alone, it is not called. Reproducible: Always Steps to Reproduce: Example Code: class XtendCheck { def print(Iterable<String> strings) { '''«FOR s:strings BEFORE printBefore» «ENDFOR»''' } def printAfter() { '''after''' } def printBefore() { '''before''' } } Workaround: use an empty AFTER like "AFTER ''''''"