Hi, no, this is not currently possible. The rule is that you're only
allowed to reference things that are in scope. 'someMethod()' is in
scope because it's shared. But 'one' is not.
I agree that this is a restriction we should probably relax. I'm not
sure if we already have an issue for that.
On Sun, Sep 25, 2016 at 4:59 PM, Wojciech Potiopa
<
wojciech...@gmail.com> wrote:
>
>
> Hello, Let say we have interface declaration:
> shared interface SomeInterface{
>
> shared formal void someMethod(Integer one,String two);
>
> }
>
> We can access method metamodel like this:
> shared test void accessMethodMetamodel(){
> Method<SomeInterface,Anything,[Integer, String]> method =
> `SomeInterface.someMethod`;
>
> }
>
> Can we access each method parameter declaration/metamodel in some similar
> way ?
> //Not working
> shared test void accessMethodParameterByInstance(){
> `SomeInterface.someMethod.one`;
>
> }
>
>
> Thanks
> Wojciech
>
> --
> You received this message because you are subscribed to the Google Groups
> "ceylon-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ceylon-users...@googlegroups.com.
> To post to this group, send email to
ceylon...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/ceylon-users.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ceylon-users/0b8dff99-d380-4634-82ee-fb2717ef394a%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Gavin King
ga...@ceylon-lang.org
http://profiles.google.com/gavin.king
http://ceylon-lang.org
http://hibernate.org
http://seamframework.org