{"action":"created","issue":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/850","labels_url":"https://api.github.com/repos/lampepfl/dotty/issues/850/labels{/name}","comments_url":"https://api.github.com/repos/lampepfl/dotty/issues/850/comments","events_url":"https://api.github.com/repos/lampepfl/dotty/issues/850/events","html_url":"https://github.com/lampepfl/dotty/issues/850","id":112924590,"number":850,"title":"Failure to find class defined in an other compilation unit","user":{"login":"smarter","id":63430,"avatar_url":"https://avatars.githubusercontent.com/u/63430?v=3","gravatar_id":"","url":"https://api.github.com/users/smarter","html_url":"https://github.com/smarter","followers_url":"https://api.github.com/users/smarter/followers","following_url":"https://api.github.com/users/smarter/following{/other_user}","gists_url":"https://api.github.com/users/smarter/gists{/gist_id}","starred_url":"https://api.github.com/users/smarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarter/subscriptions","organizations_url":"https://api.github.com/users/smarter/orgs","repos_url":"https://api.github.com/users/smarter/repos","events_url":"https://api.github.com/users/smarter/events{/privacy}","received_events_url":"https://api.github.com/users/smarter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-23T01:44:06Z","updated_at":"2015-10-23T08:29:55Z","closed_at":null,"body":"Put the following in `A.scala`:\r\n```scala\r\nimport B.hello\r\n\r\nprivate class A(private[this] var foo: Int)\r\n```\r\nAnd the following in `B.scala`:\r\n```scala\r\nobject B {\r\n  def hello: Int = 1\r\n}\r\n```\r\nThen this fails (note that `dotc` in master is currently broken, you need to have https://github.com/dotty-staging/dotty/commit/1adc563d6e4187675c97aa036c0227dc2ff10edf applied)\r\n```scala\r\n% dotc A.scala B.scala\r\nA.scala:1: error: not found: B\r\nimport B.hello\r\n       ^\r\none error found\r\n```\r\nChanging pretty much anything in `A` (removing `private`, replacing the `var` by a `val`, ...) is enough to avoid the error."},"comment":{"url":"https://api.github.com/repos/lampepfl/dotty/issues/comments/150511286","html_url":"https://github.com/lampepfl/dotty/issues/850#issuecomment-150511286","issue_url":"https://api.github.com/repos/lampepfl/dotty/issues/850","id":150511286,"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-10-23T08:29:55Z","updated_at":"2015-10-23T08:29:55Z","body":">note that dotc in master is currently broken, you need to have dotty-staging@1adc563 applied\r\n\r\nNot entirely broken, it is just unconditionally bootstrapping itself. If you let it finish once, it should be fine."}}