Title: Ivy: fullTemplateTypeCheck errors with noImplicitAny and null in function expressions · Issue #33528 · angular/angular · GitHub
Open Graph Title: Ivy: fullTemplateTypeCheck errors with noImplicitAny and null in function expressions · Issue #33528 · angular/angular
X Title: Ivy: fullTemplateTypeCheck errors with noImplicitAny and null in function expressions · Issue #33528 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler Is this a regression? This is introduced by Ivy Description If a function expression in a template does a null affectation, than the template type-checking fa...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler Is this a regression? This is introduced by Ivy Description If a function expression in a template does a null affecta...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/compiler Is this a regression? This is introduced by Ivy Description If a function expression in a template does a null affecta...
Opengraph URL: https://github.com/angular/angular/issues/33528
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ivy: fullTemplateTypeCheck errors with noImplicitAny and null in function expressions","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular/compiler\r\n\r\n### Is this a regression?\r\n\r\nThis is introduced by Ivy\r\n\r\n### Description\r\n\r\nIf a function expression in a template does a `null` affectation, than the template type-checking fails if `noImplicitAny` is used:\r\n\r\n```html\r\n\u003cbutton (click)=\"title = null\">Cancel\u003c/button>\r\n```\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nhttps://github.com/cexbrayat/null-event\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nERROR in src/app/app.component.html:1:18 - error TS7011: Function expression, which lacks return-type annotation, implicitly has an 'any' return type.\r\n\r\n1 \u003cbutton (click)=\"title = null\">Cancel\u003c/button>\r\n ~~~~~~~~~~~~\r\n\r\n src/app/app.component.ts:5:16\r\n 5 templateUrl: './app.component.html',\r\n ~~~~~~~~~~~~~~~~~~~~~~\r\n Error occurs in the template of component AppComponent.\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.0-rc.0\r\nNode: 12.12.0\r\nOS: darwin x64\r\nAngular: 9.0.0-rc.0\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-rc.0\r\n@angular-devkit/build-angular 0.900.0-rc.0\r\n@angular-devkit/build-optimizer 0.900.0-rc.0\r\n@angular-devkit/build-webpack 0.900.0-rc.0\r\n@angular-devkit/core 9.0.0-rc.0\r\n@angular-devkit/schematics 9.0.0-rc.0\r\n@ngtools/webpack 9.0.0-rc.0\r\n@schematics/angular 9.0.0-rc.0\r\n@schematics/update 0.900.0-rc.0\r\nrxjs 6.5.3\r\ntypescript 3.6.4\r\nwebpack 4.41.2\r\n\u003c/code>\u003c/pre>\r\n\r\n","author":{"url":"https://github.com/cexbrayat","@type":"Person","name":"cexbrayat"},"datePublished":"2019-11-01T10:27:12Z","url":"https://github.com/angular/angular/issues/33528"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ba8754c2-c997-bcb8-bee6-47bb4075a738 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA26:E9D16:4749B0:59FED5:6B010A5D |
| html-safe-nonce | 3bd802d02e31a97c1ebcb08d478cba0e4adf90a9607962e0130004450d011db5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTI2OkU5RDE2OjQ3NDlCMDo1OUZFRDU6NkIwMTBBNUQiLCJ2aXNpdG9yX2lkIjoiNTEyNjEzNTQ3NjM2MDY0NTIxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 562f874f4b069d4832891c32d0510f6ace9265e7a727cb6b2dce9394fd4874f0 |
| hovercard-subject-tag | issue:516032633 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/33528/issue_layout |
| twitter:image | https://opengraph.githubassets.com/632bd96379a42b0dbc514f6d1b184cf166e0d6a2002f62c207ba403e83bfff6d/angular/angular/issues/33528 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/632bd96379a42b0dbc514f6d1b184cf166e0d6a2002f62c207ba403e83bfff6d/angular/angular/issues/33528 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/compiler Is this a regression? This is introduced by Ivy Description If a function expression in a template does a null affecta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cexbrayat |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width