title: Preview in Jetpack Compose with lambda function doesn't work
body: <p>I am trying to learn Jetpack compose but I have an issue with the preview.
  I have this composable.</p>
  <pre><code>fun RegistrationScreen(
      state: RegisterState,
      onRegister: (String, String, String, String) -&gt; Unit,
      onBack: () -&gt; Unit,
      onDismissDialog: () -&gt; Unit
  ) { //Code }
  </code></pre>
  <pre><code>@Preview(showBackground = true)
  @Composable
  private fun DefaultPreview() {
      RegistrationScreen(
          state = RegisterState(),
          onRegister = &quot;Name&quot;,
          onBack = { },
          onDismissDialog = { }
      )
  }
  </code></pre>
  <p>Obviously this is the problem in onRegister</p>
  <p>Type mismatch: inferred type is String but (String, String, String, String) -&gt; Unit was expected</p>
  <p>But I can't pass these Strings parameters together and I don't know why.</p>
  <p>For extra context, this is my NavGraphBuilder:</p>
  <pre><code>fun NavGraphBuilder.addRegistration(
      navController: NavHostController
  ){
      composable(route = Destinations.Register.route) {
          val viewModel: RegisterViewModel = hiltViewModel()
          RegistrationScreen(
              state = viewModel.state.value,
              onRegister = viewModel::register,
              onBack = {
                  navController.popBackStack()
              },
              onDismissDialog = viewModel::hideErrorDialog
          )
      }
  
  </code></pre>
  <p>And this my ViewModel:</p>
  <pre><code>class RegisterViewModel : ViewModel() {
      val state: MutableState&lt;RegisterState&gt; = mutableStateOf(RegisterState())
      fun register(
          name: String,
          email: String,
          password: String,
          confirmPassword: String
      ) { //code }
  </code></pre>