summaryrefslogtreecommitdiff
path: root/go/overflow.go
blob: 65169428424b94163396b7acf604d4a35d89f188 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package main

import (
	"fmt"
)

func main () {
	var i int = 9223372036854775807;
	i = i + 1;
	fmt.Println(i);
	// ah so Go doesn't specially handle overflows
}