Thread overview
[Issue 18087] "no property 'value' for type 'void'" when properties split among mixins
Dec 16, 2017
Ketmar Dark
Dec 16, 2017
Jonathan Wilbur
Sep 05, 2022
Nick Treleaven
Dec 17, 2022
Iain Buclaw
December 16, 2017
https://issues.dlang.org/show_bug.cgi?id=18087

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--
December 16, 2017
https://issues.dlang.org/show_bug.cgi?id=18087

--- Comment #1 from Jonathan Wilbur <jonathan@wilbur.space> ---
Sorry, I just remembered to provide version info:

uname -a
Darwin <REDACTED HOSTNAME> 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov  9
18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64

dmd --version
DMD64 D Compiler v2.077.0
Copyright (c) 1999-2017 by Digital Mars written by Walter Bright

ld -v
@(#)PROGRAM:ld  PROJECT:ld64-274.1
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h
armv6m armv7k armv7m armv7em (tvOS)
LTO support using: LLVM version 8.0.0, (clang-800.0.38)
TAPI support using: Apple TAPI version 1.30

--
September 05, 2022
https://issues.dlang.org/show_bug.cgi?id=18087

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #2 from Nick Treleaven <nick@geany.org> ---
The error should be improved, but this should not compile. From the spec:

> If two different mixins are put in the same scope, and each define a declaration with the same name, there is an ambiguity error when the declaration is referenced

https://dlang.org/spec/template-mixin.html#mixin_scope

This is to prevent accidental collisions. Instead, you can do this inside class Foo:

    mixin tempy1 t1;
    mixin tempy2 t2;
    alias points = t1.points;
    alias points = t2.points;

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18087

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=18087

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19348

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--