aboutsummaryrefslogtreecommitdiff
path: root/tests/issues/test_issue_5097.odin
blob: 57ef60b8d43a3b584721dce0c838ac1d976076d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Tests issue #5097 https://github.com/odin-lang/Odin/issues/5097
package test_issues

Node_Ptr :: ^Node // the typedef...

Node :: struct {
	prev, next: Node_Ptr, // replacing the type with ^Node also fixes it
}

// ...if placed here, it works just fine

main :: proc() {
	node: Node_Ptr
	_ = node
}