checker, cgen: fix interface embedding smartcast (fix #13296) (#15127)

This commit is contained in:
yuyi 2022-07-19 21:36:16 +08:00 committed by GitHub
parent 0afa2f76c8
commit 041e90b2e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 89 additions and 28 deletions

View file

@ -197,7 +197,7 @@ const (
amortization = 0.95
)
fn get_webgl() (&JS.HTMLCanvasElement, JS.WebGLRenderingContext) {
fn get_webgl() (JS.HTMLCanvasElement, JS.WebGLRenderingContext) {
JS.console.log(dom.document)
elem := dom.document.getElementById('myCanvas'.str) or { panic('cannot get canvas') }
match elem {