[ nice-Bugs-1180920 ] invalid declaration crashes compiler

"SourceForge.net" <[email protected]> Mon, 11 Apr 2005 10:50:23 -0700
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #1180920, was opened at 2005-04-11 19:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1180920&group_id=12788

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Arnout Engelen (raboofje)
Assigned to: Nobody/Anonymous (nobody)
Summary: invalid declaration crashes compiler

Initial Comment:
<Comparable T,U> ?U getValue (?, T key) {
  return null;
}

with

Nice compiler version 0.9.11 prerelease (build
2005.04.11, 12:54:51 UTC)
Compiled using JDK 1.4.1

gives

Stack trace:
Exception in thread "main" java.lang.ClassCastException
        at nice.tools.typing.Types.rawType(Types.java:104)
        at
nice.tools.typing.Types.equivalent(Types.java:84)
        at nice.tools.typing.Types.isVoid(Types.java:32)
        at bossa.syntax.fun.doResolve(userOperator.nice:48)
        at
bossa.syntax.UserOperator.doResolve(userOperator.nice)
        at
bossa.syntax.fun.doResolve(defaultMethod.nice:81)
        at
bossa.syntax.DefaultMethodImplementation.doResolve(defaultMethod.nice)
        at bossa.syntax.fun.resolve(ast.nice:66)
        at bossa.syntax.CAST.resolve(ast.nice)
        at bossa.syntax.fun.resolveScoping(ast.nice:86)
        at bossa.syntax.CAST.resolveScoping(ast.nice)
        at bossa.modules.Package.load(Package.java:267)
        at mlsub.compilation.fun.lambda31(Unknown Source)
        at mlsub.compilation.fun.apply1(Unknown Source)
        at
gnu.expr.ModuleMethod.apply1(ModuleMethod.java:89)
        at nice.lang.fun.foreach(collections.nice:141)
        at nice.lang.dispatch.foreach(Unknown Source)
        at
mlsub.compilation.fun.loadComponent(load.nice:24)
        at
mlsub.compilation.dispatch.loadComponent(Unknown Source)
        at mlsub.compilation.fun$load.lambda29(Unknown
Source)
        at mlsub.compilation.fun$load.apply1(Unknown
Source)
        at
gnu.expr.ModuleMethod.apply1(ModuleMethod.java:89)
        at nice.lang.fun.foreach(collections.nice:141)
        at nice.lang.dispatch.foreach(Unknown Source)
        at mlsub.compilation.fun.load(load.nice:44)
        at mlsub.compilation.dispatch.load(Unknown Source)
        at mlsub.compilation.fun.make(make.nice:42)
        at mlsub.compilation.dispatch.make(Unknown Source)
        at
nice.tools.compiler.fun.compile(interface.nice:40)
        at nice.tools.compiler.dispatch.compile(Unknown
Source)
        at
nice.tools.compiler.console.fun.compile(main.nice:165)
        at
nice.tools.compiler.console.dispatch.compile(Unknown
Source)
        at
nice.tools.compiler.console.fun.main(main.nice:199)
        at
nice.tools.compiler.console.dispatch.main(Unknown Source)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1180920&group_id=12788


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click