This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 177764 - [68cat] scala.tools.nsc.FatalError: Companions 'class App' and 'object App' must be defined in same file.
Summary: [68cat] scala.tools.nsc.FatalError: Companions 'class App' and 'object App' m...
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: _ dcaoyuan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-27 10:03 UTC by aldobrucale
Modified: 2009-11-27 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 161334


Attachments
stacktrace (3.39 KB, text/plain)
2009-11-27 10:03 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2009-11-27 10:03:43 UTC
Build: NetBeans IDE Dev (Build 200911261400)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.31-15-generic, i386

User Comments:
zuvicdn: autocompleteion main in scala object

aldobrucale: Wrote this and tried autocompletion with cursor after "S"

package scalaprove

object App {
  def log(item: _) : Boolean = {
    S
  }
}



Stacktrace: 
scala.tools.nsc.FatalError: Companions 'class App' and 'object App' must be defined in same file.
        at scala.tools.nsc.symtab.Symbols$Symbol.isCoDefinedWith(Symbols.java:1271)
        at scala.tools.nsc.symtab.Symbols$Symbol$$anonfun$linkedClassOfModule$1.apply(Symbols.java:1282)
        at scala.tools.nsc.symtab.Symbols$Symbol$$anonfun$linkedClassOfModule$1.apply(Symbols.java:1282)
        at scala.tools.nsc.symtab.Symbols$Symbol.filter(Symbols.java:1082)
        at scala.tools.nsc.symtab.Symbols$Symbol.suchThat(Symbols.java:1086)
        at scala.tools.nsc.symtab.Symbols$Symbol.linkedClassOfModule(Symbols.java:1282)
Comment 1 aldobrucale 2009-11-27 10:03:47 UTC
Created attachment 91793 [details]
stacktrace