File: scope1.bsh

package info (click to toggle)
bsh 2.0b4-20
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,224 kB
  • sloc: java: 23,431; xml: 4,500; sh: 139; makefile: 24
file content (15 lines) | stat: -rw-r--r-- 173 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/java bsh.Interpreter

source("TestHarness.bsh");

foo( arg ) {
	this.a=arg;
	return this;
}

f1=foo(1);
f2=foo(2);
assert(f1.a == 1);
assert(f2.a == 2);

complete();