File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,17 @@ impl<'l> TypeCheckingContext<'l> {
171
171
. error (
172
172
* name_span,
173
173
format ! (
174
- "The type of this object is a local interfaec '{}'. You cannot use struct fields on local interfaces" ,
174
+ "The type of this object is a local interface '{}'. You cannot use struct fields on local interfaces" ,
175
175
interface_decl. name
176
176
) ,
177
177
)
178
178
. info_obj_same_file ( interface_decl) ;
179
179
self . type_checker . alloc_unknown ( )
180
180
}
181
- AbstractInnerType :: Named ( _) => todo ! ( "Structs" ) ,
181
+ AbstractInnerType :: Named ( _) => {
182
+ self . errors . todo ( * name_span, "Structs" ) ;
183
+ self . type_checker . alloc_unknown ( ) // todo!("Structs")
184
+ }
182
185
// TODO "subinterfaces"
183
186
AbstractInnerType :: Interface ( md_ref, _interface) => {
184
187
let md = self . globals . get_submodule ( md_ref) ;
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ impl Value {
236
236
} )
237
237
}
238
238
AbstractInnerType :: Named ( AbstractGlobalReference { .. } ) => {
239
- todo ! ( "Structs" )
239
+ return Err ( "TODO: Structs" . to_string ( ) ) ; // todo!("Structs")
240
240
}
241
241
AbstractInnerType :: Unknown ( _) => unreachable ! ( "Caught by typecheck" ) ,
242
242
AbstractInnerType :: Interface ( _, _) | AbstractInnerType :: LocalInterface ( _) => {
You can’t perform that action at this time.
0 commit comments