File: test.16

package info (click to toggle)
libdap 3.20.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 22,116 kB
  • sloc: cpp: 52,168; sh: 40,006; xml: 23,505; ansic: 20,020; yacc: 2,452; exp: 1,544; makefile: 1,068; lex: 305; perl: 52; fortran: 8
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
    }
}