Description
The following
struct Outer{
@Table struct Inner1:Identifiable{
let id:Int
}
@Table struct Inner2:Identifiable{
let id:Int
let inner1ID:Inner1.ID
}
}
results in an error: 'Inner1' in scope inside the macro expansion.
Checklist
Expected behavior
The Swift compiles has no problem with Inner1.ID but the macro does. You have to revert to Outer.Inner1.ID to make it work.
Unfortunately swifts error message is not very helpful.
Actual behavior
No response
Reproducing project
No response
SharingGRDB version information
No response
Sharing version information
No response
GRDB version information
No response
Destination operating system
No response
Xcode version information
No response
Swift Compiler version information
Description
The following
results in an error: 'Inner1' in scope inside the macro expansion.
Checklist
mainbranch of this package.Expected behavior
The Swift compiles has no problem with Inner1.ID but the macro does. You have to revert to Outer.Inner1.ID to make it work.
Unfortunately swifts error message is not very helpful.
Actual behavior
No response
Reproducing project
No response
SharingGRDB version information
No response
Sharing version information
No response
GRDB version information
No response
Destination operating system
No response
Xcode version information
No response
Swift Compiler version information