mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
fix another type alias issue with mini cycle
This commit is contained in:
@@ -19,6 +19,7 @@ set COMMON=-define:ODIN_TEST_FANCY=false -file -vet -strict-style
|
||||
..\..\..\odin test ..\test_issue_4584.odin %COMMON% || exit /b
|
||||
..\..\..\odin build ..\test_issue_5043.odin %COMMON% || exit /b
|
||||
..\..\..\odin build ..\test_issue_5097.odin %COMMON% || exit /b
|
||||
..\..\..\odin build ..\test_issue_5097-2.odin %COMMON% || exit /b
|
||||
|
||||
@echo off
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ else
|
||||
fi
|
||||
$ODIN build ../test_issue_5043.odin $COMMON
|
||||
$ODIN build ../test_issue_5097.odin $COMMON
|
||||
$ODIN build ../test_issue_5097-2.odin $COMMON
|
||||
|
||||
set +x
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
// Tests another variation of, this should compile #5097 https://github.com/odin-lang/Odin/issues/5097
|
||||
package test_issues
|
||||
|
||||
Face :: ^FaceRec
|
||||
GlyphSlot :: ^GlyphSlotRec
|
||||
Size :: ^SizeRec
|
||||
|
||||
SizeRec :: struct {
|
||||
face: Face,
|
||||
}
|
||||
|
||||
GlyphSlotRec :: struct {
|
||||
face: Face,
|
||||
}
|
||||
|
||||
FaceRec :: struct {
|
||||
glyph: GlyphSlot,
|
||||
size: Size,
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
face: Face
|
||||
_ = face
|
||||
}
|
||||
Reference in New Issue
Block a user