Created
April 26, 2019 16:05
-
-
Save Whateverable/9c6df881dd249a31d335a181ed8be84c to your computer and use it in GitHub Desktop.
evalable6
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
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)"; } |
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
(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