File: test.16

package info (click to toggle)
libdap 3.9.3-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 13,388 kB
  • ctags: 6,966
  • sloc: cpp: 32,601; ansic: 11,148; sh: 10,960; exp: 4,232; yacc: 1,694; makefile: 795; tcl: 509; perl: 138; xml: 80
file content (13 lines) | stat: -rw-r--r-- 242 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13

# Test variable redefinition error

Attributes {
    var1 {
        Int32 i 1;
	Float64 i 10.8; # this is an error since `i' is already an Int32
	Float64 j 100.98;
    }
    var2 {
	 Float64 i 1.8; # not an error; different variable
    }
}