### Version 2.6.8 ### Reproduction link [https://codepen.io/zhangenming/pen/GexZQK](https://codepen.io/zhangenming/pen/GexZQK) ### Steps to reproduce ```html <input :value="price" @input="e=>price=e.target.value"> ``` Compiled: ```js with(this){return _c('input',{domProps:{"value":price},on:{"input":e=>price=e.target.value}})} ``` ```html <input :value="price" @input="function f(e){price=e.target.value}">// this wont' be work ``` Compiled: ```js with(this){return _c('input',{domProps:{"value":price},on:{"input":function($event){function f(e){price=e.target.value}}}})} ``` ### What is expected? can be work ### What is actually happening? this wont' be work <!-- generated by vue-issues. DO NOT REMOVE -->