mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-17 19:02:37 +00:00
12 lines
326 B
Odin
12 lines
326 B
Odin
// Tests issue #7073-part 1 https://github.com/odin-lang/Odin/issues/7073
|
|
package test_issues
|
|
|
|
main :: proc() {
|
|
arr := [2]int{10, 20}
|
|
_, _ = **arr // ok: array value
|
|
_, _ = **struct{x, y: int}{} // ok: struct value
|
|
|
|
_, _ = **[2]int // error: array type
|
|
_, _ = **struct{x, y: int} // error: struct type
|
|
}
|