Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Incorrect handling of unbound generic types in open classes #225

Open
stephen-hawley opened this issue Jan 14, 2020 · 0 comments
Open

Incorrect handling of unbound generic types in open classes #225

stephen-hawley opened this issue Jan 14, 2020 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@stephen-hawley
Copy link
Contributor

open class Tester<T> {
	private var x: T?
	public init (a: T) {
		x = a
	}
	open func getIt() -> T? {
		return x
	}
}

This happens when trying to identify the generic depth and index of T in the function getIt. In this case, the type, Swift.Optional<T> gets identified as a generic, but the generic part is embedded and this causes problems.

@stephen-hawley stephen-hawley added the bug Something isn't working label Jan 14, 2020
@stephen-hawley stephen-hawley added this to the Future milestone Jan 14, 2020
@stephen-hawley stephen-hawley self-assigned this Jan 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant