[Swift-devel] bad use of "not defined" error message

Glen Hocky hockyg at uchicago.edu
Fri Mar 25 18:48:11 CDT 2011


Hey everyone,
Here's a suggestion for an improved compile error message

in an app() I had something like
app(outStruct o) run(params){
   runApp @filename(o.param1)
}

When I removed o.param1, rather than telling me param1 wasn't a member of
outStruct, it instead said

Could not start execution.
        Type outStruct is not defined. in application run at line 24

(where I have substituted all my real stuff for the fake names used above)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20110325/40d926c5/attachment.html>


More information about the Swift-devel mailing list