~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to test/fixedbugs/bug205.go

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
var m map[string]int;
12
12
 
13
13
func main() {
14
 
        println(t["hi"]);       // ERROR "integer"
15
 
        println(s["hi"]);       // ERROR "integer" "to type uint"
16
 
        println(m[0]);  // ERROR "map index"
 
14
        println(t["hi"]);       // ERROR "non-integer slice index"
 
15
        println(s["hi"]);       // ERROR "non-integer string index"
 
16
        println(m[0]);  // ERROR "as type string in map index"
17
17
}
18
18