Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unknown, please file report on issues.dlang.org #20875

Open
Temtaime opened this issue Feb 16, 2025 · 0 comments
Open

Error: unknown, please file report on issues.dlang.org #20875

Temtaime opened this issue Feb 16, 2025 · 0 comments

Comments

@Temtaime
Copy link
Contributor

Error on latest dmd.

dustmited:

template DbBase()
{
	template query(T)
	{
		auto query(string sql)
		{
			auto stmt = prepare(sql);
			return process!T(stmt);
		}
	}

}

class SQLite
{
	mixin DbBase;
	auto process(A)(void*)
	{
		struct S
		{
			void popFront()
			{
			}

			auto front()
			{
			}

		}

		return S();
	}

	auto prepare(string sql)
	{
		return _cache[sql];
	}

	void*[string] _cache;
}

class WebDav
{
	auto makeRoot()
	{
		auto res = _db.query!ulong(`SELECT id, etag FROM server_files WHERE pid is NULL;`);

		typeof(res.front)(_freeId);
	}

	SQLite _db;
	ulong _freeId;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant