Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 26, 2019 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/9c6df881dd249a31d335a181ed8be84c to your computer and use it in GitHub Desktop.
Save Whateverable/9c6df881dd249a31d335a181ed8be84c to your computer and use it in GitHub Desktop.
evalable6
use Test; class A { has $.a; }; class B { has $.b }; class C is B is A { }; given C.new(:a(1), :b(2)) { is .a, 1, "Initialization of attributes in multiple inheritance works (1)"; is .b, 2, "Initializatino of attributes in multiple inheritance works (2)"; }
(exit code 1)
not ok 1 - Initialization of attributes in multiple inheritance works (1)
# Failed test 'Initialization of attributes in multiple inheritance works (1)'
# at /tmp/4Km_2u5ld0 line 1
# expected: '1'
# got: (Any)
ok 2 - Initializatino of attributes in multiple inheritance works (2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment