Skip to content

dmd 2.071 visibility warnings #7

@shishkander

Description

@shishkander

I'm not 100% certain of the visibility rules any more, so I'm not sure if below warnings are a bug in DMD or actually incorrect D usage by tested that evaded compiler for so long.

tested/example$ dmd --version
DMD64 D Compiler v2.071.0
Copyright (c) 1999-2015 by Digital Mars written by Walter Bright
tested/example$ dub test
No source files found in configuration 'library'. Falling back to "dub -b unittest".
Performing "unittest" build using dmd for x86_64.
tested ~master: building configuration "library"...
tested-example ~master: building configuration "application"...
../source/tested.d(270,21): Deprecation: app.object is not visible from module tested
../source/tested.d(271,27): Deprecation: app.object is not visible from module tested
../source/tested.d(270,21): Deprecation: app.tested is not visible from module tested
../source/tested.d(271,27): Deprecation: app.tested is not visible from module tested
../source/tested.d(272,17): Deprecation: app.tested is not visible from module tested
Linking...
Running ./tested-example 
PASS "arithmetic" (app.__unittestL26_2) after 0.000000 s
FAIL "arithmetic2" (app.__unittestL36_3) after 0.000013 s: unittest failure
PASS "int array" (app.__unittestL43_4) after 1.106415 s
FAIL "limited int array" (app.__unittestL56_5) after 0.994495 s: Too many items
PASS "recursion must be terminated" (app.Recursion.__unittestL75_6) after 0.000000 s
===========================
3 of 5 tests have passed.

FINAL RESULT: FAILED
core.exception.AssertError@source/app.d(20): Unit tests failed.
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions