Jump to page: 1 2 3
Thread overview
[Issue 16590] Wrong di generation for ref methods
Oct 17, 2016
Satoshi
Oct 25, 2016
Satoshi
Oct 25, 2016
Satoshi
Oct 25, 2016
Satoshi
Oct 25, 2016
Satoshi
Oct 25, 2016
Satoshi
Oct 25, 2016
Satoshi
Dec 21, 2016
Satoshi
Dec 28, 2016
Jacob Jensen
Dec 28, 2016
Chris Wright
Dec 28, 2016
Chris Wright
Feb 24, 2017
Satoshi
Feb 24, 2017
Satoshi
Feb 28, 2017
Satoshi
Jun 26, 2017
Vladimir Panteleev
Aug 23, 2017
Mike
October 17, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

--- Comment #1 from Satoshi <satoshi@rikarin.org> ---
When I create function like:

class TestClass {
    int aa;

    auto ref foo() {
        return aa;
    }
}

It is exported correctly, but when I create it like:
class TestClass {
    int aa;

    ref foo() { // without auto
        return aa;
    }
}

it is exported like:
class TestClass {
    int aa;

    ref foo(); // Cannot deduce return type
}

--
October 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

--- Comment #2 from Satoshi <satoshi@rikarin.org> ---
() @trusted {


}

block is rewritten as
() {

}

what is wrong

--
October 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

--- Comment #3 from Satoshi <satoshi@rikarin.org> ---
methods marked as return, e.g.
void foo() return {

}

are exported in wring way.

--
October 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

--- Comment #4 from Satoshi <satoshi@rikarin.org> ---
class Foo {
    protected void method42() {

    }
}


class Bar : Foo {
   void method42() {

   }
}

Bar.method42() does not override any function

--
October 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

--- Comment #5 from Satoshi <satoshi@rikarin.org> ---
struct Foo(size_t Size = 42 / magic()) {

}


size_t magic() {
    return 42;
}


This cannot resolve magic() function at compile time.

--
October 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

--- Comment #6 from Satoshi <satoshi@rikarin.org> ---
class Foo {
immutable(Foo) Dummy = new immutable(Foo);

private immutable pure nothrow @nogc @safe this() {

}

}


this() has stripped body and compiler thrown an error

"cannot be constructed at compile time, because the constructor has no available source code"

--
October 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |andrei@erdani.com
           Assignee|nobody@puremagic.com        |razvan.nitu1305@gmail.com

--
October 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

--- Comment #7 from Satoshi <satoshi@rikarin.org> ---
Attributes are stripped from destrutors.

e.g.
~this() @trusted { ... }

to ~this();

--
December 21, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

--- Comment #8 from Satoshi <satoshi@rikarin.org> ---
Can someone fix this bug, please?
I am not able to release any alpha version of my library until this bug will
not be fixed.

--
December 28, 2016
https://issues.dlang.org/show_bug.cgi?id=16590

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |ilyayaroshenko@gmail.com
           Hardware|x86_64                      |All

--
« First   ‹ Prev
1 2 3