Skip to content

#pragma once no working inside import * from as #218

@huangqinjin

Description

@huangqinjin

a.hexpat

#pragma once 

import std.io;
std::print("{}", "Import a");

b.hexpat

#pragma once

import a;

The following code will output Import a twice. I am expecting that module a should be executed only once as it is guarded with pragma once.

import a;
import * from b as B;

B b @ 0;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions