Comments (6)
PERL6LIB=. rakudo/perl6 -e 'use Foo; use Bar; sub a is foo { };'
===SORRY!===
Cannot import symbol &trait_mod:<is> from Bar, because it already exists in this lexical scope &trait_mod:<is>
at -e:1
------> use Foo; use Barβ; sub a is foo { };
from sdl6.
BTW, if you comment out what I posted above, you get:
PERL6LIB=. rakudo/perl6 -e 'use Foo; use Bar; sub a is bar { }; sub b is foo();'
===SORRY!===
Cannot call 'trait_mod:<is>'; none of these signatures match:
:(Mu:U $child, Mu:U $parent)
:(Attribute:D $attr, :rw(:$rw)!)
:(Attribute:D $attr, :readonly(:$readonly)!)
:(Attribute:D $attr, :box_target(:$box_target)!)
:(Routine:D $r, :rw(:$rw)!)
:(Routine:D $r, :default(:$default)!)
:(Routine:D $r, :DEPRECATED(:$DEPRECATED)!)
:(Routine:D $r, Mu :inlinable(:$inlinable)!)
:(Routine:D $r, :onlystar(:$onlystar)!)
:(Routine:D $r, :prec(%spec)!)
:(Routine $r, :equiv(:&equiv))
:(Routine $r, :tighter(:&tighter))
:(Routine $r, :looser(:&looser))
:(Routine $r, :assoc(:$assoc))
:(Parameter:D $param, :readonly(:$readonly)!)
:(Parameter:D $param, :rw(:$rw)!)
:(Parameter:D $param, :copy(:$copy)!)
:(Parameter:D $param, :required(:$required)!)
:(Parameter:D $param, :parcel(:$parcel)!)
:(Routine:D \r, :export(:$export)!)
:(Routine:D $r, :hidden_from_backtrace(:$hidden_from_backtrace)!)
:(Routine $r, :foo(:$foo)!)
:(Mu:U $type, :rw(:$rw)!)
:(Mu:U $type, :nativesize(:$nativesize)!)
:(Mu:U $type, :hidden(:$hidden)!)
:(Mu:U \type, :export(:$export)!)
:(Mu \sym, :export(:$export)!, :SYMBOL(:$SYMBOL)!)
:(Mu:D $docee, :docs(:$docs)!)
:(Mu:U $docee, :docs(:$docs)!)
from sdl6.
same porblem, but simplier:
OK, we get two dispatchees:
PERL6LIB=.. ./perl6 -e 'multi sub a ( Str $a ) {}; multi sub a ( Int $a ) {}; a()'
===SORRY!===
CHECK FAILED:
Calling 'a' will never work with no arguments (line 1)
Expected any of:
:(Str $a)
:(Int $a)
But if we if import sub a(Str) from Foo, and sub a(int) from Bar, we end up with only one dispatchee, too.
from sdl6.
patch is here, even if there are issues:
FROGGS/rakudo@ebf6ace
from sdl6.
There is a working branch in rakudo, I hope this will go into production soon:
https://github.com/rakudo/rakudo/tree/froggs_mergemulti
(There are currently no known issues)
from sdl6.
the patch got released: https://github.com/svatsan/rakudo/commit/69b53cf907d44ce5ccbd2a5889005c3f5f7a2478
from sdl6.
Related Issues (2)
- Broken on Christmas Perl HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl6.