When generating RBS type signatures for core-ext classes, sord --rbs outputs them as regular classes. They need to be outputted with generic parameters for rbs/steep to properly validate them:
To Reproduce
class Array
def my_ext
# ...
end
end
$ sord --rbs defs.rbs
$ cat defs.rbs
Expected behavior
class Array[unchecked out T]
def my_ext: () ...
end
Describe the bug
When generating RBS type signatures for core-ext classes,
sord --rbs
outputs them as regular classes. They need to be outputted with generic parameters forrbs
/steep
to properly validate them:To Reproduce
Expected behavior
Actual behavior
Additional information