aboutsummaryrefslogtreecommitdiff
path: root/content/constants/exercise3.go
diff options
context:
space:
mode:
Diffstat (limited to 'content/constants/exercise3.go')
-rw-r--r--content/constants/exercise3.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/content/constants/exercise3.go b/content/constants/exercise3.go
new file mode 100644
index 0000000..dbe7595
--- /dev/null
+++ b/content/constants/exercise3.go
@@ -0,0 +1,12 @@
+// +build OMIT
+
+package main
+
+func main() {
+ // START OMIT
+ var u uint
+ var v = -1
+ u = uint(v)
+ // STOP OMIT
+ _ = u
+}