|
Groovy example source code file (ChainedAssignmentTest.groovy)
The Groovy ChainedAssignmentTest.groovy source codepackage groovy class ChainedAssignmentTest extends GroovyTestCase { def dummy(v) { print v } void testCompare() { def i = 123 def s = "hello" def i2 def i1 = i2 = i; assert i1 == 123 assert i2 == 123 def s1 dummy(s1 = s) assert s1 == "hello" } } Other Groovy examples (source code examples)Here is a short list of links related to this Groovy ChainedAssignmentTest.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.