aboutsummaryrefslogtreecommitdiff
path: root/content/constants/exercise5.go
diff options
context:
space:
mode:
Diffstat (limited to 'content/constants/exercise5.go')
-rw-r--r--content/constants/exercise5.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/constants/exercise5.go b/content/constants/exercise5.go
new file mode 100644
index 0000000..2fca330
--- /dev/null
+++ b/content/constants/exercise5.go
@@ -0,0 +1,9 @@
+// +build OMIT
+
+package main
+
+func main() {
+ // START OMIT
+ const MaxUint uint = ^0 // Error: overflow
+ // STOP OMIT
+}