From 5ce78b7cd281b187a06dcdb9ea9d1de8419db297 Mon Sep 17 00:00:00 2001
From: Russ Cox x
may also be a
(possibly parenthesized)
composite literal.
+If the evaluation of x
would cause a run-time panic,
+then the evaluation of &x
does too.
For an operand x
of pointer type *T
, the pointer
indirection *x
denotes the value of type T
pointed
@@ -3302,6 +3305,10 @@ will cause a run-time panic.
&Point{2, 3}
*p
*pf(x)
+
+var x *int = nil
+*x // causes a run-time panic
+&*x // causes a run-time panic
--
2.50.0