Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sig/method_types.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ module RBS
type loc = def_loc | attr_loc

attr_reader type_params: Array[AST::TypeParam]
attr_reader type: Types::function
attr_reader type: Types::Function
attr_reader block: Types::Block?
attr_reader location: loc?

def initialize: (type_params: Array[AST::TypeParam], type: Types::function, block: Types::Block?, location: loc?) -> void
def initialize: (type_params: Array[AST::TypeParam], type: Types::Function, block: Types::Block?, location: loc?) -> void

def ==: (untyped other) -> bool

Expand All @@ -29,7 +29,7 @@ module RBS
#
def sub: (Substitution) -> MethodType

def update: (?type_params: Array[AST::TypeParam], ?type: Types::function, ?block: Types::Block?, ?location: loc?) -> MethodType
def update: (?type_params: Array[AST::TypeParam], ?type: Types::Function, ?block: Types::Block?, ?location: loc?) -> MethodType

def free_variables: (?Set[Symbol] set) -> Set[Symbol]

Expand Down
2 changes: 1 addition & 1 deletion sig/variance_calculator.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module RBS

def type: (Types::t, result: Result, context: variance) -> void

def function: (Types::function, result: Result, context: variance) -> void
def function: (Types::Function, result: Result, context: variance) -> void

def negate: (variance) -> variance
end
Expand Down
Loading