~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to test/alias1.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        case uint8:
18
18
                // ok
19
19
        default:
20
 
                println("byte != uint8")
 
20
                panic("byte != uint8")
21
21
        }
22
22
 
23
23
        x = uint8(2)
25
25
        case byte:
26
26
                // ok
27
27
        default:
28
 
                println("uint8 != byte")
 
28
                panic("uint8 != byte")
29
29
        }
30
30
 
31
31
        rune32 := false
37
37
                // must be new code
38
38
                rune32 = true
39
39
        default:
40
 
                println("rune != int and rune != int32")
 
40
                panic("rune != int and rune != int32")
41
41
        }
42
42
 
43
43
        if rune32 {
49
49
        case rune:
50
50
                // ok
51
51
        default:
52
 
                println("int (or int32) != rune")
 
52
                panic("int (or int32) != rune")
53
53
        }
54
54
}