|
Groovy example source code file (RodsBug.groovy)
The Groovy RodsBug.groovy source codepackage groovy.bugs /** * @author Rod Cope * @version $Revision: 4996 $ */ class RodsBug extends GroovyTestCase { void testBug() { doTest(true) /* def x = 1 if (x > 0) { String name = "Rod" println(name) } */ } void testBug2() { def x = 1 if (x > 0) { //String name = "Rod" def name = "Rod" println(name) } } void doTest(flag) { if (flag) { String name = "Rod" //def name = "Rod" doAssert(name) } } void doTest() { String name = "Rod" doAssert(name) } void doAssert(text) { assert text != null } } Other Groovy examples (source code examples)Here is a short list of links related to this Groovy RodsBug.groovy source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.