Sha256: 78bcb206012c0456552f72e4428950f51438282381152077327963e2a3e7d31e
Contents?: true
Size: 429 Bytes
Versions: 11
Compression:
Stored size: 429 Bytes
Contents
module Mod def foo [42, super(:sym)] end end class Foo prepend Mod def foo(sym_arg) sym_arg.to_s end def bar foo end end __END__ # Errors smoke/prepend1.rb:3: [error] no superclass method: Mod#foo # Classes module Mod def foo: -> ([Integer, String | untyped]) end class Foo prepend Mod def foo: (:sym | untyped sym_arg) -> (String | untyped) def bar: -> ([Integer, String | untyped]) end
Version data entries
11 entries across 11 versions & 1 rubygems