{"action":"created","issue":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/435","labels_url":"https://api.github.com/repos/lampepfl/dotty/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/lampepfl/dotty/issues/435/comments","events_url":"https://api.github.com/repos/lampepfl/dotty/issues/435/events","html_url":"https://github.com/lampepfl/dotty/issues/435","id":64550595,"number":435,"title":"Dotty deviation: failing to compile case class & package object with same name","user":{"login":"DarkDimius","id":1084930,"avatar_url":"https://avatars.githubusercontent.com/u/1084930?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkDimius","html_url":"https://github.com/DarkDimius","followers_url":"https://api.github.com/users/DarkDimius/followers","following_url":"https://api.github.com/users/DarkDimius/following{/other_user}","gists_url":"https://api.github.com/users/DarkDimius/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkDimius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkDimius/subscriptions","organizations_url":"https://api.github.com/users/DarkDimius/orgs","repos_url":"https://api.github.com/users/DarkDimius/repos","events_url":"https://api.github.com/users/DarkDimius/events{/privacy}","received_events_url":"https://api.github.com/users/DarkDimius/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lampepfl/dotty/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"DarkDimius","id":1084930,"avatar_url":"https://avatars.githubusercontent.com/u/1084930?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkDimius","html_url":"https://github.com/DarkDimius","followers_url":"https://api.github.com/users/DarkDimius/followers","following_url":"https://api.github.com/users/DarkDimius/following{/other_user}","gists_url":"https://api.github.com/users/DarkDimius/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkDimius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkDimius/subscriptions","organizations_url":"https://api.github.com/users/DarkDimius/orgs","repos_url":"https://api.github.com/users/DarkDimius/repos","events_url":"https://api.github.com/users/DarkDimius/events{/privacy}","received_events_url":"https://api.github.com/users/DarkDimius/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-26T15:06:53Z","updated_at":"2015-03-26T17:21:48Z","closed_at":null,"body":"```\r\ncase class FooBar(){}\r\npackage object FooBar{}\r\n```\r\n```\r\nexception occured while indexing packageCase.scala\r\nException in thread \"main\" scala.MatchError: PackageDef(Ident(FooBar),List(ModuleDef(package,Template(DefDef(<init>,List(),List(),TypeTree(EmptyTree),EmptyTree),List(),ValDef(_,EmptyTree,EmptyTree),List(EmptyTree))))) (of class dotty.tools.dotc.ast.Trees$PackageDef)\r\n\tat dotty.tools.dotc.typer.Namer$$anonfun$mergeCompanionDefs$1$4.apply(Namer.scala:408)\r\n\tat dotty.tools.dotc.typer.Namer$$anonfun$mergeCompanionDefs$1$4.apply(Namer.scala:405)\r\n\tat scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:778)\r\n\tat scala.collection.immutable.List.foreach(List.scala:381)\r\n\tat scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:777)\r\n\tat dotty.tools.dotc.typer.Namer.mergeCompanionDefs$1(Namer.scala:405)\r\n\tat dotty.tools.dotc.typer.Namer.index(Namer.scala:422)\r\n\tat dotty.tools.dotc.typer.Namer.indexExpanded(Namer.scala:380)\r\n\tat dotty.tools.dotc.typer.Namer.index(Namer.scala:371)\r\n\tat dotty.tools.dotc.typer.FrontEnd$$anonfun$enterSyms$1.apply$mcV$sp(FrontEnd.scala:35)\r\n\tat dotty.tools.dotc.typer.FrontEnd.monitor(FrontEnd.scala:18)\r\n\tat dotty.tools.dotc.typer.FrontEnd.enterSyms(FrontEnd.scala:33)\r\n\tat dotty.tools.dotc.typer.FrontEnd$$anonfun$runOn$2.apply(FrontEnd.scala:51)\r\n\tat dotty.tools.dotc.typer.FrontEnd$$anonfun$runOn$2.apply(FrontEnd.scala:51)\r\n\tat scala.collection.immutable.List.foreach(List.scala:381)\r\n\tat dotty.tools.dotc.typer.FrontEnd.runOn(FrontEnd.scala:51)\r\n\tat dotty.tools.dotc.Run$$anonfun$compileSources$1$$anonfun$apply$mcV$sp$3.apply(Run.scala:50)\r\n\tat dotty.tools.dotc.Run$$anonfun$compileSources$1$$anonfun$apply$mcV$sp$3.apply(Run.scala:47)\r\n\tat scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)\r\n\tat scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)\r\n\tat dotty.tools.dotc.Run$$anonfun$compileSources$1.apply$mcV$sp(Run.scala:47)\r\n\tat dotty.tools.dotc.Run$$anonfun$compileSources$1.apply(Run.scala:42)\r\n\tat dotty.tools.dotc.Run$$anonfun$compileSources$1.apply(Run.scala:42)\r\n\tat dotty.tools.dotc.util.Stats$.monitorHeartBeat(Stats.scala:68)\r\n\tat dotty.tools.dotc.Run.compileSources(Run.scala:41)\r\n\tat dotty.tools.dotc.Run.compile(Run.scala:32)\r\n\tat dotty.tools.dotc.Driver.doCompile(Driver.scala:20)\r\n\tat dotty.tools.dotc.Main$.doCompile(Main.scala:26)\r\n\tat dotty.tools.dotc.Driver.process(Driver.scala:31)\r\n\tat dotty.tools.dotc.Driver.main(Driver.scala:40)\r\n\tat dotty.tools.dotc.Main.main(Main.scala)\r\n```"},"comment":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/comments/86631043","html_url":"https://github.com/lampepfl/dotty/issues/435#issuecomment-86631043","issue_url":"https://api.github.com/repos/lampepfl/dotty/issues/435","id":86631043,"user":{"login":"DarkDimius","id":1084930,"avatar_url":"https://avatars.githubusercontent.com/u/1084930?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkDimius","html_url":"https://github.com/DarkDimius","followers_url":"https://api.github.com/users/DarkDimius/followers","following_url":"https://api.github.com/users/DarkDimius/following{/other_user}","gists_url":"https://api.github.com/users/DarkDimius/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkDimius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkDimius/subscriptions","organizations_url":"https://api.github.com/users/DarkDimius/orgs","repos_url":"https://api.github.com/users/DarkDimius/repos","events_url":"https://api.github.com/users/DarkDimius/events{/privacy}","received_events_url":"https://api.github.com/users/DarkDimius/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T17:21:48Z","updated_at":"2015-03-26T17:21:48Z","body":"failure in typer:\r\nhttps://github.com/lampepfl/dotty/blob/master/src/dotty/tools/dotc/typer/Typer.scala#L966\r\n```\r\npackageCase.scala:2: error: object FooBar is not a package\r\npackage object FooBar{}\r\n                     ^\r\none error found\r\n```"}}