-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## update: test.rb | ||
class Foo::Bar | ||
class C | ||
def foo | ||
1 | ||
end | ||
end | ||
end | ||
|
||
# Currently, Foo::Bar::C cannot be resolved because there is no definition of Foo | ||
class D < Foo::Bar::C | ||
def check = foo | ||
end | ||
|
||
## assert: test.rb | ||
class Foo::Bar | ||
class Foo::Bar::C | ||
def foo: -> Integer | ||
end | ||
end | ||
class D # failed to identify its superclass | ||
def check: -> untyped | ||
end | ||
|
||
## update: test.rbs | ||
module Foo | ||
end | ||
|
||
## assert: test.rb | ||
class Foo::Bar | ||
class Foo::Bar::C | ||
def foo: -> Integer | ||
end | ||
end | ||
class D < Foo::Bar::C | ||
def check: -> Integer | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module TypeProf | ||
end |